home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / Moscow ML 1.31 / source code / mosml / src / toolssrc / Makefile < prev    next >
Encoding:
Makefile  |  1996-07-03  |  988 b   |  50 lines  |  [TEXT/R*ch]

  1. # Unix Makefile for mosmldep
  2.  
  3. INCLUDES=-I ../compiler
  4. COMPFLAGS=$(INCLUDES)
  5. LINKFLAGS=-g -P full $(INCLUDES)
  6.  
  7. include ../Makefile.inc
  8.  
  9. OBJS = \
  10.     Deppars.uo Deplex.uo Mosmldep.uo
  11.  
  12. LIBOBJS = \
  13.     Obj.uo Nonstdio.uo Lexing.uo Parsing.uo
  14.  
  15. CLIBOBJS = \
  16.     Hasht.uo Fnlib.uo Config.uo
  17.  
  18. all: cutdeps mosmldep
  19.  
  20. mosmldep: $(OBJS)
  21.     $(MOSMLL) $(LINKFLAGS) -noheader -o mosmldep $(LIBOBJS) \
  22.     $(CLIBOBJS) $(OBJS)
  23.  
  24. cutdeps: cutdeps.uo
  25.     $(MOSMLL) $(LINKFLAGS) -noheader -o cutdeps cutdeps.uo
  26.  
  27. Deppars.sml Deppars.sig: Deppars.grm
  28.     $(MOSMLYACC) Deppars.grm
  29.  
  30. clean:
  31.     rm -f *.ui
  32.     rm -f *.uo
  33.     rm -f Makefile.bak
  34.     rm -f Deppars.sig Deppars.sml Deplex.sig Deplex.sml Mosmldep.sml
  35.     rm -f cutdeps mosmldep
  36.  
  37. install:
  38.     cp cutdeps mosmldep $(TOOLDIR)
  39.  
  40. depend: Deplex.sml Deppars.sml Mosmldep.sml
  41.     rm -f Makefile.bak
  42.     mv Makefile Makefile.bak
  43.     $(MOSMLCUT) < Makefile.bak > Makefile
  44.     $(MOSMLDEP) >> Makefile
  45.  
  46. ### DO NOT DELETE THIS LINE
  47. Mosmldep.uo: Deplex.uo Deppars.ui 
  48. Deplex.uo: Deppars.ui 
  49. Deppars.uo: Deppars.ui 
  50.